<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<jsp:include page = "../../metadatos.jsp" flush = "True" />
<html>
    <head>
        <title>Nuevo de Proveedores</title>
    </head>
    <body>
        <div class="wrapper">
            <header class="header">
                <img src="./resources/Logo.PNG" />
            </header><!-- .header-->
            <!-- .Navigation Menu -->
            <jsp:include page = "../../menuNavegacion.jsp" flush = "True" />
            <main class="content">
                <form class="formee" action="./Proveedores?action=nuevoProveedorRequest" method="post">
                    <c:if test="${principalPartners.nErrores>0}">
                        <div class="formee-msg-error">
                            <h3>Incidencias:</h3>
                            <ul>
                                <c:forEach items="${principalPartners.errores}" var="e">
                                    <li><c:out value="${e}"/></li>
                                    </c:forEach>
                            </ul>
                        </div> 
                    </c:if>
                    <fieldset>
                        <legend>Nuevo Proveedor</legend>
                        <div class="grid-12-12">
                            <label>Razon Social<em class="formee-req">*</em></label>
                            <input type="text" name="rs" onKeyup="this.value = txtalfanum(this.value)"/>
                        </div>
                        <div class="grid-6-12">
                            <label>Nombre Contacto<em class="formee-req">*</em></label>
                            <input type="text" name="nc" onKeyup="this.value = txtalfanum(this.value)"/>
                        </div>
                        <div class="grid-6-12">
                            <label>Apellido Contacto<em class="formee-req">*</em></label>
                            <input type="text" name="ac" onKeyup="this.value = txtalfanum(this.value)"/>
                        </div>
                        <div class="grid-12-12">
                            <label>Direccion<em class="formee-req">*</em></label>
                            <input type="text" name="dir" onKeyup="this.value = txtalfanum(this.value)"/>
                        </div>
                        <div class="grid-6-12">
                            <label>Telefono 1<em class="formee-req">*</em></label>
                            <input type="text" name="tel1" onKeyup="this.value = txtalfanum(this.value)"/>
                        </div>
                        <div class="grid-6-12">
                            <label>Telefono 2<em class="formee-req">*</em></label>
                            <input type="text" name="tel2" onKeyup="this.value = txtalfanum(this.value)"/>
                        </div>
                        <div class="grid-6-12">
                            <label>Correo Electronico<em class="formee-req">*</em></label>
                            <input type="text" name="mail" onKeyup="this.value = txtalfanum(this.value)"/>
                        </div>
                        <div class="grid-3-12">
                            <input type="submit" value="Guardar"/>
                        </div>
                    </fieldset>
                </form>
            </main>
        </div>
    </body>
</html>
<jsp:include page = "../../pie.jsp" flush = "True" />